<?php
/**
 * Slince music finder library
 * @author Tao <taosikai@yeah.net>
 */
namespace Slince\MusicFinder\Entity;

class Singer
{
    /**
     * 歌手id，不同平台id可能会相同
     * @var int
     */
    protected $id;

    /**
     * @var string
     */
    protected $name;

    public function __construct($id, $name)
    {
        $this->id = $id;
        $this->name = $name;
    }

    /**
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param int $id
     * @return Singer
     */
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param string $name
     * @return Singer
     */
    public function setName($name)
    {
        $this->name = $name;
        return $this;
    }
}